<?php
namespace app\index\controller;


use other\Sms;
use think\Controller;
use think\Db;
use think\Exception;
use think\Queue;

class ZhaoYang extends Controller

{
    public function index()
    {
        $provinces = \db('city')->field(['id','name'])->where(['pid' => 1, 'type' => 1])->select();// 省份
        $this->assign('province',$provinces);
       return $this->fetch();
    }

    public function gjjindex()
    {
        $provinces = \db('city')->field(['id','name'])->where(['pid' => 1, 'type' => 1])->select();// 省份
        $this->assign('province',$provinces);
        return $this->fetch();
    }

    public function allindex()
    {
//        $provinces = \db('city')->field(['id','name'])->where(['pid' => 1, 'type' => 1])->select();// 省份
        $provinces=[
            ['id'=>'16','name'=>'江苏'],
            ['id'=>'14','name'=>'湖南'],
            ['id'=>'13','name'=>'湖北'],
            ['id'=>'4','name'=>'福建'],
            ['id'=>'11','name'=>'河南'],
            ['id'=>'6','name'=>'广东'],
            ['id'=>'31','name'=>'浙江'],
            ['id'=>'18','name'=>'辽宁'],
            ['id'=>'22','name'=>'山东'],
        ];

        $this->assign('province',$provinces);
        return $this->fetch();
    }


    public function gongjijing()
    {
        return $this->fetch();
    }


}
